home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 February / PCWFEB08.iso / Software / Resources / Utilities / Partition Logic 0.68 / partlogic-0.68.iso / system / headers / string.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-10  |  2.1 KB  |  69 lines

  1. // 
  2. //  Visopsys
  3. //  Copyright (C) 1998-2007 J. Andrew McLaughlin
  4. //  
  5. //  This library is free software; you can redistribute it and/or modify it
  6. //  under the terms of the GNU Lesser General Public License as published by
  7. //  the Free Software Foundation; either version 2.1 of the License, or (at
  8. //  your option) any later version.
  9. //
  10. //  This library is distributed in the hope that it will be useful, but
  11. //  WITHOUT ANY WARRANTY; without even the implied warranty of
  12. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
  13. //  General Public License for more details.
  14. //
  15. //  You should have received a copy of the GNU Lesser General Public License
  16. //  along with this library; if not, write to the Free Software Foundation,
  17. //  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. //
  19. //  string.h
  20. //
  21.  
  22. // This is the Visopsys version of the standard header file string.h
  23.  
  24. #if !defined(_STRING_H)
  25.  
  26. #include <stddef.h>
  27.  
  28. #define MAXSTRINGLENGTH 1024
  29.  
  30. #ifndef NULL
  31. #define NULL
  32. #endif
  33.  
  34. // Functions
  35. void bcopy(const void *, void *, size_t n);
  36. void bzero(void *, size_t);
  37. int ffs(int);
  38. int memcmp(const void *, const void *, size_t);
  39. void *memcpy(void *, const void *, size_t);
  40. void *memmove(void *, const void *, size_t);
  41. void *memset(void *, int, size_t);
  42. int strcasecmp(const char *, const char *);
  43. char *strcasestr(const char *, const char *);
  44. char *strcat(char *, const char *);
  45. char *strchr(const char *, int);
  46. int strcmp(const char *, const char *);
  47. char *strcpy(char *, const char *);
  48. char *strdup(const char *);
  49. char *strerror(int);
  50. size_t strlen(const char *);
  51. int strncasecmp(const char *, const char *, size_t);
  52. char *strncat(char *, const char *, size_t);
  53. int strncmp(const char *, const char *, size_t);
  54. char *strncpy(char *, const char *, size_t);
  55. size_t strnlen(const char *, size_t);
  56. char *strrchr(const char *, int);
  57. size_t strspn(const char *, const char *);
  58.  
  59. // These have identical definitions to functions above
  60. #define index(str, chr) strchr(str, chr)
  61. #define rindex(str, chr) strrchr(str, chr)
  62.  
  63. #if !defined(__cplusplus)
  64. char *strstr(const char *, const char *);
  65. #endif
  66.  
  67. #define _STRING_H
  68. #endif
  69.